package com.mai.erp.controller;

import com.mai.erp.domain.Workstation;
import com.mai.erp.res.Result;
import com.mai.erp.service.WorkstationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;

/**
 * @author : Wang
 * @version : 1.0
 * @since : 2025/6/16 下午11:25
 */
@RestController
@RequestMapping("/workstation")
public class WorkStationController {
    @Resource
    private WorkstationService workstationService;
    @GetMapping("/list")
    public Result<List<Workstation>> getWorkstationList() {
        return Result.success(workstationService.list());
    }
}
